package ev.selection;//need to add this line

import ev.data.*;//need to add this line
import java.util.*;

public class SimpleSelection implements Selection{

	public Population select(Population old, int limit)
	{
		Population res = new Population(old.getCities());
		Collections.sort(old.getPopulation());

		for(int i=0; i<limit; i++){
			res.add(old.getIndividual(i));
		}
		return res;
	}
}
